<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateChallengeGameDetailsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('challenge_game_details', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('game_id')->comment('比赛ID');
            $table->string('score')->comment('比分详情')->nullable();
            $table->string('desc')->comment('比赛图片，视频地址')->nullable();

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('challenge_game_details');
    }
}
